// vite.config.js
import { defineConfig } from "file:///Users/liguoling/Documents/git/react/xue_xu_react/12-%E5%BC%82%E6%AD%A5%E8%AF%B7%E6%B1%82-%E6%90%9C%E7%B4%A2%E6%A1%88%E4%BE%8B/.yarn/__virtual__/vite-virtual-9e8486513a/6/.yarn/berry/cache/vite-npm-5.4.10-30d2e3a4e2-10c0.zip/node_modules/vite/dist/node/index.js";
import react from "file:///Users/liguoling/Documents/git/react/xue_xu_react/12-%E5%BC%82%E6%AD%A5%E8%AF%B7%E6%B1%82-%E6%90%9C%E7%B4%A2%E6%A1%88%E4%BE%8B/.yarn/__virtual__/@vitejs-plugin-react-swc-virtual-5a2d4ae1b9/6/.yarn/berry/cache/@vitejs-plugin-react-swc-npm-3.7.1-5b59b61ac8-10c0.zip/node_modules/@vitejs/plugin-react-swc/index.mjs";
var vite_config_default = defineConfig({
  plugins: [react()],
  server: {
    proxy: {
      "/dev-api": {
        target: "https://apifoxmock.com",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/dev-api/, "")
      }
    }
  },
  css: {
    preprocessorOptions: {
      sass: {
        modifyVars: {
          hack: `true; @import (reference) "${resolve("src/assets/css/global.scss")}";`
        },
        // includePaths: ['path/to/sass/deps'],
        // prependData: '@import "./src/assets/css/global.scss";',
        javascriptEnabled: true
        //开启
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvVXNlcnMvbGlndW9saW5nL0RvY3VtZW50cy9naXQvcmVhY3QveHVlX3h1X3JlYWN0LzEyLVx1NUYwMlx1NkI2NVx1OEJGN1x1NkM0Mi1cdTY0MUNcdTdEMjJcdTY4NDhcdTRGOEJcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3Jp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